package com.example.demo.service;

import com.example.demo.entity.ArticleLike;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.entity.VO.ArticleLikeVO;

import java.util.List;

/**
 * <p>
 * 文章点赞表 服务类
 * </p>
 *
 * @author Mr.sdy
 * @since 2024-06-05
 */
public interface IArticleLikeService extends IService<ArticleLike> {
    //增加点赞
    Integer addLike(ArticleLike articleLike) ;
    //查询指定文章的点赞总数
    Integer countLikesByArticle(Integer articleId) ;
    //查询用户相关文章点赞
    List<ArticleLike> selectLikesByUserAndArticle(ArticleLike articleLike) ;
    //查询所有点赞
    List<ArticleLike> selectAllLikes() ;
    //用户取消点赞
    Integer deleteLike(ArticleLike articleLike) ;
}
